﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Cms.Core.Infrastructure
{
    /// <summary>
    /// 要显示的特性
    /// </summary>
    [AttributeUsage(AttributeTargets.Field | AttributeTargets.Class | AttributeTargets.Enum|AttributeTargets.Method)]

    public sealed class DisplayAttribute : Attribute
    {

        private string Name { get; set; }
        public DisplayAttribute(string name)
        {
            this.Name = name;
        }


        public string DisplayName()
        {

            return Name??string.Empty;
        }

    }
}
